package activity.projeto;

import org.andengine.entity.primitive.Rectangle;
import org.andengine.entity.sprite.Sprite;
import org.andengine.util.color.Color;

public class Bullet {

	public Sprite sprite;
	

	private float xInicial;
	private float yInicial;
	private int poderDano;
	
	public int getPoderDano() {
		return poderDano;
	}

	public void setPoderDano(int poderDano) {
		this.poderDano = poderDano;
	}

	public void addCordenadasIniciais(float x, float y){
		this.xInicial=x;
		this.yInicial=y;
	}
	
	public float getXInicial(){
		return this.xInicial;
	}
	
	public float getYInicial(){
		return this.yInicial;
	}

	public Bullet(int i) {
		// --- sprite tiro normal----
		if(i==0){
		sprite =  new Sprite(0, 0, Planeta1.getSharedInstance().getMBalaTextureRegion(),
				 Planeta1.getSharedInstance().getVertexBufferObjectManager());

		}else{
			// --- sprite tiro especial----
		sprite =  new Sprite(0, 0, Planeta1.getSharedInstance().getMBalasEspeciasTexture(),
					 Planeta1.getSharedInstance().getVertexBufferObjectManager());
		}
	}
}
